﻿
using System;

namespace Util
{
    /// <summary>
    /// 通用工具类
    /// </summary>
    public class CommonUtil
    {
        //得到时间戳
        public static UInt32 UnixStamp()
        {
            TimeSpan ts = DateTime.Now - TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
            return Convert.ToUInt32(ts.TotalSeconds);
        }

        //GUID字符串
        public static string getGUID()
        {
            return Guid.NewGuid().ToString();
        }

    }
}
